<template>
  <div>
    <div class="text" @mouseup.stop="highlight">
      sadkljhg的数据库拉升阶段和开发环境宽松的客家话 第三方士大夫
    </div>
  </div>
</template>
<script setup lang="ts">
import { onBeforeMount, onMounted, reactive, ref } from "vue";
const emits = defineEmits([]);
const props = defineProps({});
onMounted(() => {
  console.log(state.value);
});
const highlight = (e) => {
  console.log(window.getSelection().toString());
};
const state = ref({ name: "asdasd" });
onBeforeMount(() => {});

defineExpose({ state });
</script>
<style lang="scss" scoped></style>
